#!/bin/bash
#########################################
# run-problem2-matrix.sh
# 自动测试 6 组配置：
#   combiner={true,false}
#   partitioner={alphabet,hash,length}
#########################################

COMBINERS=("true" "false")
PARTITIONERS=("alphabetpartitioner" "lengthpartitioner" "hashpartitioner" "randompartitioner")

for c in "${COMBINERS[@]}"; do
    for p in "${PARTITIONERS[@]}"; do
        echo "======================================"
        echo " Running: Combiner=${c}, Partitioner=${p}"
        echo "======================================"
        ./run-problem2.sh --combiner=${c} --partitioner=${p}
        echo ""
    done
done
